package com.shuqing.utils;

import java.io.Serializable;

/**
 * @program: ShuqingLibrary
 * @ClassName Result
 * @description: 统一返回结果类
 * @author: Ats
 * @create: 2025-03-31 15:33
 * @Version 1.0
 */
public class Result<T> implements Serializable {

    private boolean success;
    private String message;

    private T data;

    public Result(boolean success, String message, T data) {
        super();
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public Result(boolean success, String message) {
        super();
        this.success = success;
        this.message = message;
    }


    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
